<template>
    <embed class="native-button" tag="button-aa" :options="options" @buttonclick="onClick"></embed>
</template>

<script>
    export default {
        data() {
            return {
                options: {
                    label: 'hello'
                }
            }
        },
        methods: {
            onClick(e) {
                console.log('onClick', e.detail.text)
                this.options = {
                    label: 'world'
                }
            }
        }
    }
</script>

<style scoped>
    .native-button {
        display: block;
       width: 100%;
        height: 100%;
        margin: 30px auto;
    }
</style>
